Quick Index
Video


A video that accompanies the page is here....

Steps


Installation Link
The installation link is shown. It is suggested to install via this link as opposed to by cli.
Installation...
Working Directory
To run tests on our install, we will want to use a "working directory" (wd). Nothing fancy, just a directory on our
computer. However, there is one gotcha noted here:

Now create a working directory.
Opening Console
In the next steps we will need to use the console.
See this for tips on how to open the console:
Show Version
  • Open up a console
  • Now run the "node -v" command as shown highlighted to the right
  • You should see a "version" that looks similar to that shown here to the right (your actual number may vary)
>node -v
v14.15.4
Check File
  • Copy the files from this ZIP into your working directory (from prev step)
  • Open up a console in the same directory as the js file (i.e. your working directory)
  • Now type in and run the command "node install-check.js" as shown highlighted to the right
  • The results should be as shown to the right
>node install-check.js

CHECK 1-2-3
(8 + 7) * 10 = 150
Mathy check: OKAY
Gotcha
Make sure you have "package.json" in the directory along with your js file when you run node (you can use the "package.json" in the ZIP that is provided in the previous step -- it is a minimal package file that will suffice when just running basic js).

We'll learn more about this package file later when we start doing node projects.
package.json
Gotcha
Commands are picky. We want this:

node install-check.js


And want to watch out for typos (extra space in first, extra "@" in second):

node install-check. js
@node install-check. js
node install-check.js
Just FYI
Here are several examples of how to run "node".
>node my-fun-file.js
>node foo.js
>node one-more.js


NPM


A tool called npm is installed along with Node.js.

We will use this tool to initialize projects, install public packages, and publish code.

Here is a quick sanity test to ensure npm is working.

Installing on Unix Server (Without Admin)


Let's head over to this page for these steps.

Installing Node.js Using Chocolatey


In Windows:


Updating Node.js


In Windows, this has been the most reliable method to update Node.js:



Navigation